﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List" import="java.util.ArrayList"
	import="domain.Academy"%>
<%@ page import="repository.AcademicDAO" import="java.sql.SQLException"
	import="java.sql.ResultSet"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">

<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>用户注册</title>

<!-- CSS -->
<link rel="stylesheet"
	href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,500">
<link rel="stylesheet" href="asset/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet"
	href="asset/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="asset/css/form-elements.css">
<link rel="stylesheet" href="asset/css/style.css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="asset/ico/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="asset/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="asset/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="asset/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="asset/ico/apple-touch-icon-57-precomposed.png">

</head>

<body>


	<!-- Top content -->
	<div class="top-content">

		<div class="inner-bg">
			<div class="container">
				<div class="row">
					<div class="col-sm-8 col-sm-offset-2 text">
						<h1>
							<strong>注册界面</strong>
						</h1>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-6 col-sm-offset-3 form-box">
						<div class="form-top">
							<div class="form-top-left">
								<h3>用户注册</h3>
							</div>
						</div>
						<div class="form-bottom">
							<form role="form" action="DoRegister" method="post"
								class="login-form">
								<div class="form-group">
									<label>用户Id</label> <input type="text" name="userId"
										class="form-control input-lg" placeholder="用户Id">
									<div class="form-group">
										<label>用户名</label> <input type="text" name="userName"
											class="form-control input-lg" placeholder="用户名">
									</div>
									<div class="form-group">
										<label>密码</label> <input type="password" name="pwd"
											class="form-control input-lg" placeholder="密码">
									</div>
									<div class="form-group">
										<label>用户类型</label> <select id="userType" class="form-control"
											name="adamic">
											<option value="用户">用户</option>
											<option value="管理员">管理员</option>
										</select>
									</div>
									<div class="form-group">
										<label>电话号码</label> <input type="text" name="phnumber"
											class="form-control input-lg" placeholder="电话号码">
									</div>
									<div class="form-group">
										<label>所属学院</label> <select id="userType" class="form-control"
											name="adamic">
											<c:forEach var="user" items="${ requestScope.propertySco }">
												<option value="${user.name}"> ${user.name}</option>

											</c:forEach>
										</select>
									</div>
									<button type="submit" class="btn">注册</button>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>

	</div>


	<!-- Javascript -->
	<script src="asset/js/jquery-1.11.1.min.js"></script>
	<script src="asset/bootstrap/js/bootstrap.min.js"></script>
	<script src="asset/js/jquery.backstretch.min.js"></script>
	<script src="asset/js/scripts.js"></script>

	<!--[if lt IE 10]>
            <script src="asset/js/placeholder.js"></script>
        <![endif]-->

</body>

</html>